package com.zhijian.wharf.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 人员-组织架构关系表
 *
 * @author Auto Generator
 * @date 2022-01-24 15:27:14
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "人员-组织架构关系表")
public class UserGroup {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", hidden = true)
    private Long id;

    /**
     * 人员id
     */
    @ApiModelProperty("人员id")
    @NotNull(message = "人员id不能为空")
    private Long userId;

    /**
     * 组织架构id
     */
    @ApiModelProperty("组织架构id")
    @NotNull(message = "组织架构id不能为空")
    private Long groupId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", hidden = true)
    private Date updateTime;
}